package org.lex.game.sudoku.model;

import java.util.EventListener;

public interface SudokuModelListener extends EventListener {
	public enum Cause {
		/**
		 * cell changed caused by user
		 */
		USER,
		/**
		 * cell changed caused by system
		 */
		SYSTEM;
	}

	public void cellChanged(SudokuModel model, Cause cause, int row, int col, int oldValue, int newValue);

	public void modelChanged(SudokuModel model);
}
